/**
 * 文物模块
 */

import request from '@/utils/request'

/**
 * 获取文物分页数据
 * @param {*} params 
 * @returns 
 */
export const queryArtPage = params => { 
    return request({ 
        method: 'post',
        url: '/artifact/queryArtPage',
        params
    })
}

/**
 * 查询分页数据----带条件
 * @param {*} params 
 * @returns 
 */
export const selectArtPage = params => { 
    return request({ 
        method:'get',
        url: '/artifact/selectArtPage',
        params
    })
}

/**
 * 获取文物总数
 * @returns 
 */
export const getArtCount = params => { 
    return request({
        method:'post',
        url:'/artifact/getArtCount',
        params
    })
}

/**
 * 更新文物记录
 * @param {*} data 
 * @returns 
 */
export const updateArt = (data) => { 
    return request({ 
        method:'post',
        url: '/artifact/updateArt',
        data
    })
}

/**
 * 增加文物
 * @param {*} data 
 * @returns 
 */
export const addArt = (data) => { 
    return request({ 
        method:'post',
        url:'/artifact/addArt',
        data
    })
}

/**
 * 删除文物
 * @param {*} params 
 * @returns 
 */
export const deleteArt = params => { 
    return request({ 
        method:'post',
        url: '/artifact/deleteArt',
        params
    })
}

export const deleteArtList = params => {
    return request({ 
        method:'post',
        url:'/artifact/deleteArtList',
        params
    })
}
